package com.heiyanqiang.dao;

import com.heiyanqiang.domain.SysLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface LogAopDao {


    //添加日志到数据库
    @Insert("insert into syslog (visitTime,username,ip,url,executionTime,method) values(#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    void save(SysLog sysLog);

    //查询所有日志信息
    @Select("select * from syslog")
    List<SysLog> findAll();
}
